﻿using System;
using CoreLibrary.Email;

namespace WebService.Email {

    public abstract class BaseTemplate : IEmailTemplate {

        public abstract string GenerateBody();
        
        public string Name { get; set; }
        
        public string Subject {
            get {
                return GetSubject();
            }
        }

        public virtual string GetSubject() {
            return DateTime.Now.ToLongDateString();
        }

        public EmailAddress Sender {
            get {
                return new EmailAddress("进销存管理系统", "mingyi.frank@gmail.com");
            }
        }

        public EmailAddress ReplyTo {
            get {
                return new EmailAddress("mingyi.frank@gmail.com");
            }
        }

        


    }
}